package com.wuhainan.beelzebub.common;

import java.lang.reflect.Method;

/**
 * <br>Created by 吴海南 on 2017/12/27.
 * <br>星期三 at 14:20.
 */
public abstract class Methods {
    public static <T,K> String getMethodName(String methodName,T parameterTypes,K provider) {
        String methodsName="";
        try {
            Method method = provider.getClass().getDeclaredMethod(methodName, parameterTypes.getClass());
            methodsName=method.getName();
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        }
        return methodsName;
    }
}
